package com.example.ysdt.service.impl;

import com.example.ysdt.Vo.UserVo;
import com.example.ysdt.entiey.User;
import com.example.ysdt.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class LoginServiceImpl implements LoginService {


    @Autowired
    private com.example.ysdt.mapper.LoginMapper loginMapper;

    @Override
    public User Login(UserVo user) {
        return loginMapper.login(user);
    }

    @Override
    public void register(User user) {
        loginMapper.register(user);
    }
}
